//import com.sun.javadoc.AnnotationDesc;
//import com.sun.javadoc.ClassDoc;
//import com.sun.javadoc.MethodDoc;
//import com.sun.javadoc.RootDoc;
//import com.sun.javadoc.Type;
//
///**
// * JavaDoc的使用方法
// */
//public class JavaDocUse {
//    private static RootDoc rootDoc;
//
//    public static class Doclet {
//        public static boolean start(RootDoc rootDoc) {
//            JavaDocUse.rootDoc = rootDoc;
//            return true;
//        }
//    }
//
//    /**
//     * 显示DocRoot中的基本信息
//     */
//    public static void show() {
//        String commentText = rootDoc.commentText();
//        String rawCommentText = rootDoc.getRawCommentText();
//        System.out.println("commentText = " + commentText);
//        System.out.println("rawCommentText = " + rawCommentText);
//        ClassDoc[] classes = rootDoc.classes();
//        for (ClassDoc classDoc : classes) {
//            System.out.println(classDoc.name() +"类的注释:" + classDoc.commentText());
//            MethodDoc[] methodDocs = classDoc.methods();
//            for (MethodDoc methodDoc : methodDocs) {
//                String rawCommentText1 = methodDoc.getRawCommentText();
//                System.out.println("rawCommentText1 = " + rawCommentText1);
//                // 打印出方法上的注释
//                System.out.println("类"
//                        + classDoc.name() + ","
//                        + methodDoc.name() +
//                        "方法注释:"
//                        + methodDoc.commentText());
//                Type type = methodDoc.returnType();
//                System.out.println("type = " + type);
//                AnnotationDesc[] annotations = methodDoc.annotations();
//                System.out.println("annotations = " + annotations);
//            }
//        }
//    }
//
//    public static void main(String[] args) {
//        //-doclint:none
//        com.sun.tools.javadoc.Main.execute(new String[]{"-doclet",
//                        Doclet.class.getName(),
//                        "-encoding", "utf-8", "-classpath",
//                        "E:\\src\\zwl-swagger\\controller-demo\\target\\classes",
////                "E:\\src\\zwl-swagger\\controller-demo\\src\\main\\java\\com\\zwl\\xxx\\controller\\VgroupGrayController.java"}
//                        "E:\\src\\zwl-swagger\\controller-demo\\src\\main\\java\\com\\zwl\\xxx\\controller\\VgroupGrayController.java"}
//        );
//        show();
//    }
//}